package com.mobile.collect.beans;

import android.os.Parcel;
import android.os.Parcelable;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

/**
 * 类名: UploadDeviceInfo
 * 作者: 李学伟
 * 日期: 2020年09月30日 11:42
 * 描述:
 */
@Entity
public class ExportPicInfo implements Parcelable {
    @Id
    private Long _ID;
    private Long parentId;
    private String exportPath;

    public ExportPicInfo(String exportPath) {
        this.exportPath = exportPath;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeValue(this._ID);
        dest.writeString(this.exportPath);
    }

    public Long get_ID() {
        return this._ID;
    }

    public void set_ID(Long _ID) {
        this._ID = _ID;
    }

    public String getExportPath() {
        return this.exportPath;
    }

    public void setExportPath(String exportPath) {
        this.exportPath = exportPath;
    }

    public Long getParentId() {
        return this.parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public ExportPicInfo() {
    }

    protected ExportPicInfo(Parcel in) {
        this._ID = (Long) in.readValue(Long.class.getClassLoader());
        this.exportPath = in.readString();
    }

    @Generated(hash = 1097063854)
    public ExportPicInfo(Long _ID, Long parentId, String exportPath) {
        this._ID = _ID;
        this.parentId = parentId;
        this.exportPath = exportPath;
    }

    public static final Creator<ExportPicInfo> CREATOR = new Creator<ExportPicInfo>() {
        @Override
        public ExportPicInfo createFromParcel(Parcel source) {
            return new ExportPicInfo(source);
        }

        @Override
        public ExportPicInfo[] newArray(int size) {
            return new ExportPicInfo[size];
        }
    };

    @Override
    public String toString() {
        return "ExportPicInfo{" +
                "_ID=" + _ID +
                ", parentId=" + parentId +
                ", exportPath='" + exportPath + '\'' +
                '}';
    }
}
